//Oxcart.java
package org.example.demo3.spring;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("oxcart")
@Data
public class Oxcart {
    @Autowired
    Cow cow;
    @Value("3")
    int wheel;
}
